package com.lemi.common.base.service;

import com.github.pagehelper.PageInfo;
import com.lemi.common.base.entity.BaseEntity;

import java.util.List;

/**
 * @author kevin
 * @since 2020/7/3 2:22 PM
 */
public interface BaseService<E extends BaseEntity> {
    E findById(String id);

    List<E> findAll();

    E findOne(E e);

    List<E> findListByWhere(E e);

    PageInfo<E> findPageListByWhere(Integer pageNum, Integer pageSize, E e);

    Integer saveSelective(E e);

    Integer insertAndGetId(E e);

    E insertSelective(E e);

    Integer update(E e);

    Integer updateSelective(E e);

}
